home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmDiscInfo
- BorderStyle = 1 'Fixed Single
- Caption = "Disc Info"
- ClientHeight = 2115
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 5925
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2115
- ScaleWidth = 5925
- StartUpPosition = 2 'CenterScreen
- Begin VB.CommandButton EjectBtn
- Caption = "Eject"
- Height = 375
- Left = 4080
- TabIndex = 12
- Top = 1050
- Width = 1725
- End
- Begin VB.CommandButton OKBtn
- Caption = "OK"
- Height = 375
- Left = 4080
- TabIndex = 11
- Top = 1650
- Width = 1725
- End
- Begin VB.CommandButton EraseBtn
- Caption = "Erase"
- Height = 375
- Left = 4080
- TabIndex = 10
- Top = 600
- Width = 1725
- End
- Begin VB.CommandButton RefreshBtn
- Caption = "Refresh"
- Height = 375
- Left = 4080
- TabIndex = 9
- Top = 150
- Width = 1725
- End
- Begin VB.Frame Frame2
- Caption = "Disc Total"
- Height = 1935
- Left = 60
- TabIndex = 0
- Top = 90
- Width = 3810
- Begin VB.Label Label11
- Caption = "Type:"
- Height = 195
- Left = 150
- TabIndex = 8
- Top = 420
- Width = 555
- End
- Begin VB.Label cdTypeLbl
- Alignment = 1 'Right Justify
- BorderStyle = 1 'Fixed Single
- Height = 285
- Left = 1260
- TabIndex = 7
- Top = 330
- Width = 2415
- End
- Begin VB.Label Label13
- Caption = "Used Space:"
- Height = 195
- Left = 150
- TabIndex = 6
- Top = 1200
- Width = 945
- End
- Begin VB.Label cdStatusLbl
- Alignment = 1 'Right Justify
- BorderStyle = 1 'Fixed Single
- Height = 285
- Left = 1260
- TabIndex = 5
- Top = 720
- Width = 2415
- End
- Begin VB.Label Label3
- Caption = "Status:"
- Height = 195
- Left = 150
- TabIndex = 4
- Top = 810
- Width = 855
- End
- Begin VB.Label cdUsedSpaceLbl
- Alignment = 1 'Right Justify
- BorderStyle = 1 'Fixed Single
- Caption = "0"
- Height = 285
- Left = 1260
- TabIndex = 3
- Top = 1110
- Width = 2415
- End
- Begin VB.Label cdEstUsedSpaceLbl
- Alignment = 1 'Right Justify
- BorderStyle = 1 'Fixed Single
- Caption = "0"
- Height = 285
- Left = 1260
- TabIndex = 2
- Top = 1500
- Width = 2415
- End
- Begin VB.Label Label8
- Caption = "Est. Space:"
- Height = 195
- Left = 150
- TabIndex = 1
- Top = 1590
- Width = 1065
- End
- End
- Attribute VB_Name = "frmDiscInfo"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub EjectBtn_Click()
- frmTestVBDataCDWriter.DataCDWriter1.Eject
- RefreshFormData
- End Sub
- Private Sub EraseBtn_Click()
- frmTestVBDataCDWriter.EraseDisc
- End Sub
- Private Sub Form_Load()
- RefreshFormData
- End Sub
- Private Sub OKBtn_Click()
- Me.Hide
- End Sub
- Private Sub RefreshBtn_Click()
- RefreshFormData
- End Sub
- Private Sub RefreshFormData()
- frmTestVBDataCDWriter.RefreshDiskInfo
- cdUsedSpaceLbl.Caption = Format((frmTestVBDataCDWriter.DataCDWriter1.cdUsedSpace / 1024) / 1024, "#0.000") & " MB"
- cdEstUsedSpaceLbl.Caption = Format((frmTestVBDataCDWriter.DataCDWriter1.GetDataVolumeBurnSize / 1024) / 1024, "#0.000") & " MB"
-
- Select Case frmTestVBDataCDWriter.DataCDWriter1.cdType
- Case WRITEONCE:
- cdTypeLbl.Caption = "CD-R, CD-ROM"
- EjectBtn.Enabled = True
- EraseBtn.Enabled = False
-
- Case ERASABLE:
- cdTypeLbl.Caption = "CD-RW"
- EjectBtn.Enabled = True
- EraseBtn.Enabled = True
-
- Case RANDOMACCESS
- cdTypeLbl.Caption = "DVD-RAM"
- EjectBtn.Enabled = True
- EraseBtn.Enabled = False
-
- Case NODISC:
- cdTypeLbl.Caption = "No Disc"
- EjectBtn.Enabled = False
- EraseBtn.Enabled = False
- cdUsedSpaceLbl.Caption = 0
-
- End Select
- Select Case frmTestVBDataCDWriter.DataCDWriter1.cdStatus
- Case BLANK:
- cdStatusLbl.Caption = "Blank"
- cdUsedSpaceLbl.Caption = "0"
- Case WRITEBLE:
- cdStatusLbl.Caption = "Open"
- Case NOTWRITEBLE:
- cdStatusLbl.Caption = "Closed"
- Case UNRECOGNIZED:
- cdStatusLbl.Caption = "Unknown"
- cdUsedSpaceLbl.Caption = "0"
- End Select
- End Sub
-